package com.jinzhi.jzweb.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreService;
import com.jinzhi.jzapi.training.pojo.ApplicationRecordVo;
import com.jinzhi.jzweb.domain.BannerDO;
import com.jinzhi.jzweb.pojo.BannerVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/***
 * @author C
 * @Date 2023/12/5
 * @Description: banner业务层接口
 * @Version 1.0
 */
public interface BannerService extends CoreService<BannerDO> {

    /**
     * 分页查询
     * @param current
     * @param number
     * @return
     */
    Page<BannerDO> selectListPage(int current, int number);

    /**
     * 新增banner
     * @return
     */
    boolean insertBanner(BannerDO bannerDo) throws IOException;

    /**
     * 根据id查询banner
     * @param id
     * @return
     */
    BannerDO selectBanner(Long id);

    /**
     * 修改banner
     * @return
     */
    boolean updateBanner(BannerDO bannerDO);

    /**
     * 删除banner
     * @param id
     * @return
     */
    boolean deleteBanner(Long id);

    /**
     * 查询logo
     * @return
     */
    BannerDO selectLogo();

    BannerDO selectSchoolBadge();

}
